import axios from 'axios'
const service = axios.create({
    baseURL: '',
    timeout: 6000
})
//请求拦截
service.interceptors.request.use(config => {
    console.log(config);
    // Content-Type=application/x-www-form-urlencoded;charset=UTF-8
    return config
})
// 响应拦截
service.interceptors.response.use(res => {
    return res
}, err => {
    return Promise.reject(err)
})
export default service